package com.yh.construct.decorator.sendMessage;

import java.util.LinkedList;
import java.util.List;

/**
 * @program: design-patterns
 * @description: ${description}
 * @author: yangh0597@163.com
 * @date: 2021-03-08 21:38
 * @problem:
 **/
public class StatisticsMessageDecorate extends MessageDecorate {

    public static int AllCount = 0;


    public StatisticsMessageDecorate(Message message) {
        super(message);
    }


    @Override
    protected void sendMsg() {

        AllCount++;
        super.message.sendMsg();
    }
}
